@(id: Long, questionForm: Form[Question])
@header()

@import helper._

@implicitFieldConstructor = @{ FieldConstructor(twitterBootstrapInput.render) } 

@main("editQuestion") {
	  
    @form(routes.AdminQuestion.updateQuestion(id)) {
    	<div class="bs-docs-example" >
    	
    	<div class="bs-docs-example-after" >
    	Etape 1 sur 1
    	</div>
     
     	<legend> Modifier un question </legend>
     	
        <fieldset>
        <br>
        @select(
                questionForm("chapitre.idChapitre"), 
                options(Chapitre.options), 
                '_label -> "Chapitre de la question", '_default -> "-- Choisir un chapitre --",
                '_showConstraints -> false
             )
        	 @textarea(questionForm("libelleQuestion"), '_label -> "Libelle du question", 'rows -> 3, 'class->"input-xxlarge")
                                       		
             @inputText(questionForm("commentaire"), '_label -> "commentaire du question")
                           
             @select(
                       questionForm("niveauQuestion.idNiveauQ"), 
                       options(NiveauQuestion.options), 
                       '_label -> "Niveau de la question", '_default -> "-- Choisir un niveau --",
                       '_showConstraints -> false
                   )
            

        </fieldset>
            
            
            
        <br>
        
        <div class="actions">
        <a href="@routes.AdminQuestion.indexQuestion()" class="btn btn-primary"><i class="icon-white icon-circle-arrow-left"></i> Retour</a>
    	<button type="submit" class="btn btn-primary"> Enregistrer <i class="icon-white icon-circle-arrow-right"></i> </button>
        </div>
       </div>
    }
    
    @form(routes.AdminQuestion.deleteQuestion(id), 'class -> "topRight") {
            <input type="submit" value="Supprimer ce question" class="btn danger">
        }
    
}